package com.fast.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 *
 */
@Configuration
public class WebMvcConfig extends WebMvcConfigurerAdapter {


    @Override
	public void addResourceHandlers(ResourceHandlerRegistry registry) {
		registry.addResourceHandler("/resources/**").addResourceLocations("file:///D:/workspace/websocket-client/");
	}
    
    
    @Override
	public void addCorsMappings(CorsRegistry registry) {
		registry.addMapping("/**");
	}
    
    
    
	@Override
	public void addInterceptors(InterceptorRegistry registry) {
		
		//registry.addWebRequestInterceptor(new HttpAuthInterceptor());
	}
}
